﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace System.AutoUpdate.Library
{
    public class UpdateFilenameBuilder
    {
        public UpdateFilenameBuilder ()
        {
            
        }

        public void Parse (string filename)
        {
            
        }

        public string Build (UpdateVersionInfo version)
        {
            return "updatepkg-" + version.UpdateVersion + "-" + version.UpdateReleaseDate.Year + "-" + version.UpdateReleaseDate.Month + "-" + version.UpdateReleaseDate.Date + "-0";
        }

        public string Build (UpdateVersionInfo version, int copy)
        {
            return "updatepkg-" + version.UpdateVersion + "-" + version.UpdateReleaseDate.Year + "-" + version.UpdateReleaseDate.Month + "-" + version.UpdateReleaseDate.Date + "-" + copy;
        }
    }
}
